package benny.ApkposStore.Service;

import android.app.IntentService;
import android.content.Intent;
import android.util.Log;




public class DownloadStateService extends IntentService {
	
	final private int mSleepTime = 3000; //10s
	final private String tag = "RoomstateService";
	private int num=0;
	
	public DownloadStateService() {
		super("RoomstateService");
	}
	  
	@Override
	protected void onHandleIntent(Intent intent) {

		while(true) {
			synchronized(this) {
				try {				
					Thread.sleep(mSleepTime);
                    num++;
			//		System.out.println("检测房台状态"+num);
		
									 					
				} catch (InterruptedException e) {
					Log.e(tag, e.getMessage());					
				}
			}
		}
	}
	  

	
}
